/*
 * @Description: 边框挂件
 * @Autor: Thlq
 * @Date: 2020-09-17 18:28:17
 * @LastEditors: Thlq
 * @LastEditTime: 2020-12-25 10:45:56
 */
'use strict';
const db = uniCloud.database()
const dbCmd = db.command
const collection = db.collection("avatar-frame")
exports.main = async (event, context) => {
	const { action } = event
	let res = null
	switch (action) {
		case 'getList':
			res = await collection.get()
			break;
		default:
			res = {
				code: 403,
				msg: '非法访问'
			}
			break;
	}
	return res
};
